package com.py.sale.vo;

import com.ruoyi.common.core.web.domain.BaseEntity;

import java.math.BigDecimal;

public class SaleInfo extends BaseEntity {

    private static final long serialVersionUID = 1L;

    private String productName;
    private String productCode;
    private String productModel;
    private String unit;
    private String productType;
    private int inventory;
    private int productNum;
    private BigDecimal price;
    private BigDecimal money; // 这是 product_num 和 price 的乘积
    private int alreadyOutNum;
    private int rejectedNum;

    public String getProductName() {
        return productName;
    }

    public void setProductName(String productName) {
        this.productName = productName;
    }

    public String getProductCode() {
        return productCode;
    }

    public void setProductCode(String productCode) {
        this.productCode = productCode;
    }

    public String getProductModel() {
        return productModel;
    }

    public void setProductModel(String productModel) {
        this.productModel = productModel;
    }

    public String getUnit() {
        return unit;
    }

    public void setUnit(String unit) {
        this.unit = unit;
    }

    public String getProductType() {
        return productType;
    }

    public void setProductType(String productType) {
        this.productType = productType;
    }

    public int getInventory() {
        return inventory;
    }

    public void setInventory(int inventory) {
        this.inventory = inventory;
    }

    public int getProductNum() {
        return productNum;
    }

    public void setProductNum(int productNum) {
        this.productNum = productNum;
    }

    public BigDecimal getPrice() {
        return price;
    }

    public void setPrice(BigDecimal price) {
        this.price = price;
    }

    public BigDecimal getMoney() {
        return money;
    }

    public void setMoney(BigDecimal money) {
        this.money = money;
    }

    public int getAlreadyOutNum() {
        return alreadyOutNum;
    }

    public void setAlreadyOutNum(int alreadyOutNum) {
        this.alreadyOutNum = alreadyOutNum;
    }

    public int getRejectedNum() {
        return rejectedNum;
    }

    public void setRejectedNum(int rejectedNum) {
        this.rejectedNum = rejectedNum;
    }

    @Override
    public String toString() {
        return "SaleInfo{" +
                "productName='" + productName + '\'' +
                ", productCode='" + productCode + '\'' +
                ", productModel='" + productModel + '\'' +
                ", unit='" + unit + '\'' +
                ", productType='" + productType + '\'' +
                ", inventory=" + inventory +
                ", productNum=" + productNum +
                ", price=" + price +
                ", money=" + money +
                ", alreadyOutNum=" + alreadyOutNum +
                ", rejectedNum=" + rejectedNum +
                '}';
    }
}
